import { body } from "express-validator";
import validate from "./errorBack.js";

export const uploadValidator = validate([
  body("title").isLength({ min: 2 }).withMessage("标题长度在2位以上").bail(),
  body("vodId").notEmpty().withMessage("视频ID不能为空").bail(),
]);
